package org.ielts.domain.course;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;

import org.ielts.domain.Atom;

/**
 * 报名课程
 * 
 * @author zhang3
 * 
 */
@Entity
public class CourseInfo extends Atom {
	String contactName;

	public String getContactName() {
		return contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	public boolean isAlwaysActive() {
		return alwaysActive;
	}

	public void setAlwaysActive(boolean alwaysActive) {
		this.alwaysActive = alwaysActive;
	}

	public Date getBeginActiveTime() {
		return beginActiveTime;
	}

	public void setBeginActiveTime(Date beginActiveTime) {
		this.beginActiveTime = beginActiveTime;
	}

	public Date getEndActiveTime() {
		return endActiveTime;
	}

	public void setEndActiveTime(Date endActiveTime) {
		this.endActiveTime = endActiveTime;
	}

	public Set<Subject> getSubjects() {
		return subjects;
	}

	public void setSubjects(Set<Subject> subjects) {
		this.subjects = subjects;
	}

	boolean alwaysActive;

	Date beginActiveTime;
	Date endActiveTime;

	@OneToMany
	Set<Subject> subjects = new HashSet<Subject>();
}
